<div class="zs-body" data-ng-init="formInit('gisproject', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{order:0}
    }) && loadData('gisproject');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">地图配置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">同步工程</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gisproject') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gisproject', gisproject.sRows[0]) && openWindow('edit')"
            />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gisproject')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="数据名称" ng-model="gisproject.queryObject['layerName']" />
                </span>
                <span class="search-warpper">
                    <ag-Combobox class="zs-input" style="height:28px;" 
						placeholder="数据类型" para="{uDictionary:true,dictionary:'g_pro_layer_type',addSpace:true,superNullItem:false}"
                        ng-model="gisproject.queryObject['layerType']" />
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gisproject')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gisproject','allCheckbox');" />
                                    </th>
									<th>排序</th>
                                    <th>数据名称</th>
                                    <th>数据类型</th>
                                    <th>同步类型</th>
									<th>参数</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gisproject.datas">
									<td>
										<input type="checkbox" ng-click="selectRow('gisproject',r);" ng-model="r.selected" />
									</td>
									<td>
										<a ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.order"></label>
										</a>
									</td>
                                    <td>
                                        <a ng-click="editRow('gisproject',r) && openWindow('edit');">
                                            <label ng-bind="r.layerName"></label>
                                        </a>
                                    </td>
                                    <td>
                                        <a ng-click="editRow('gisproject',r) && openWindow('edit');">
                                            <label ng-bind="r.layerTypeName"></label>
                                        </a>
                                    </td>
									<td>
										<a ng-click="editRow('gisproject',r) && openWindow('edit');">
											<label ng-bind="r.synTypeName"></label>
										</a>
									</td>
                                    <td>
                                        <a ng-click="editRow('gisproject',r) && openWindow('edit');">
                                            显示:
                                            <label ng-bind="r.show | asChineseBool "></label>&nbsp; 可选择:
                                            <label ng-bind="r.canSelect | asChineseBool "></label>&nbsp; 可编辑:
                                            <label ng-bind="r.canEdit | asChineseBool "></label>&nbsp; 有效:
                                            <label ng-bind="r.valid | asChineseBool "></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gisproject'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="同步工程编辑" width='560px' height='440px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <tr>
								<td class="text" width="20%">序号</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gisproject.editRow.order" class="zs-input" />
								</td>
                                <td class="text" width="20%">数据名称</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gisproject.editRow.layerName" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
								<td class="text" width="20%">数据类型</td>
								<td class="left" width="30%">
									<ag-Combobox class="zs-input" style="width:153px;height:28px;" 
										para="{uDictionary:true,dictionary:'g_pro_layer_type'}" 
										ng-model="gisproject.editRow.layerType"
										text-Value="gisproject.editRow.layerTypeName" />
								</td>
                                <td class="text" width="20%">同步类型</td>
                                <td class="left" width="30%">
                                	<ag-Combobox class="zs-input" style="width:153px;height:28px;" 
                                		para="{uDictionary:true,dictionary:'g_syn_type'}" 
                                		ng-model="gisproject.editRow.synType"
                                		text-Value="gisproject.editRow.synTypeName" />
                                </td>
                            </tr>
							<tr>
                                <td class="text" width="20%">空间参考</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gisproject.editRow.spatialReference" class="zs-input" />
                                </td>
                                <td class="text" width="20%">元数据</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gisproject.editRow.metadata" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
								<td class="text" width="20%">注册数据源</td>
								<td colspan="3" class="left" width="80%">
									<ag-Combobox class="zs-input" style="width:153px;height:28px;" 
										para="{uDictionary:true,dictionary:'g_data_definition'}" 
										ng-model="gisproject.editRow.source"
										text-Value="gisproject.editRow.sourceName" />
                                </td>
							</tr>
							<tr>
								<td class="text" width="20%">文件数据源</td>
								<td colspan="3" class="left" width="80%">
									<ag-Upload ng-model="gisproject.editRow.path" 
										para="{filters:[{title:'zip', extensions:'zip'}]}"></ag-Upload>
								</td>
							</tr>
                            <tr>
                                <td class="text" width="20%"></td>
                                <td colspan="3" class="left">
									<input type="checkbox" ng-model="gisproject.editRow.show" 
										ng-true-value="true" ng-false-value="false" value='false' />显示
                                    &nbsp; 
                                    <input type="checkbox" ng-model="gisproject.editRow.canSelect" 
										ng-true-value="true" ng-false-value="false" value='false' />可选择
									&nbsp; 
                                    <input type="checkbox" ng-model="gisproject.editRow.canEdit" 
										ng-true-value="true" ng-false-value="false" value='false' />可编辑
									&nbsp;
                                    <input type="checkbox" ng-model="gisproject.editRow.valid" 
										ng-true-value="true" ng-false-value="false" value='false' />有效
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">最小比例尺</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gisproject.editRow.minScale" class="zs-input" />
                                </td>
                                <td class="text" width="20%">最大比例尺</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gisproject.editRow.maxScale" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">渲染参数</td>
                                <td colspan="3" class="left" width="80%">
                                    <input type="text" ng-model="gisproject.editRow.renderer" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">标注参数</td>
                                <td colspan="3" class="left" width="80%">
                                    <input type="text" ng-model="gisproject.editRow.label" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">标注字典</td>
                                <td colspan="3" class="left" width="80%">
                                    <input type="text" ng-model="gisproject.editRow.labelPara" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">默认值</td>
                                <td colspan="3" class="left" width="80%">
                                    <input type="text" ng-model="gisproject.editRow.defaultValue" class="zs-input" />
                                </td>
							</tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gisproject', gisproject.editRow, saveCloseWindow)"
                                    />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
